# from common.all_path import *
# from openpyxl import load_workbook
#
# wb=load_workbook(path_test_data)
# sheet=wb['Sheet1']
# print(sheet.max_row)
# print(sheet.cell(3,2).value)
#
# dic={}
# dic["a"]=1
# dic["b"]=2
# print(dic)
# data_a=[{"name":"guo","age":12},{"name":"guo23","age":23},{"name":"wdwqe","age":123}]
#
# from ddt import ddt,data,unpack,file_data
# import unittest,os
# x=[(1,2,3),(4,5,6)]
#
# @ddt
# class Test(unittest.TestCase):
#     @data(*x)
#
#     def test01(self,value1):
#         print(1111111111)
#         print(value1)
# if __name__ == '__main__':
#     unittest.main()


# @ddt
# class Mytest(unittest.TestCase):
#     @data(*data_a)
#     def test_a(self,ii):
#         print("888888")
#         print(ii['name'])
#
# if __name__ == '__main__':
#     unittest.main()
# from common.all_path import *
# import openpyxl
#
#
# data_list=[]
# wb=openpyxl.load_workbook(path_test_data)
# sheet=wb['Sheet1']
# print(sheet.max_row)
#
# for rows in range(1,sheet.max_row):
#     dict = {}
#     dict["caseId"]=sheet.cell(rows+1,1).value
#     dict["desc"]=sheet.cell(rows+1,2).value
#     print(dict)
#     data_list.append(dict)
#
#
# print(data_list)
# import os
# import configparser
# from common.test_file_path import *

# cf=configparser.ConfigParser()
# res=cf.read(config_path)
# res1=cf.get("auto_test","auto_test")
# print(res1)
# print(type(eval(res1)))

# class Read_config:
#     def read_config(self,sec,opt):
#         cf=configparser.ConfigParser()
#         cf.read(config_path)
#         res=cf.get(sec,opt)
#         return  eval(res)
#
# if __name__ == '__main__':
#     f=Read_config().read_config("auto_test","auto_test")
#     print(f)
#     print(type(f))

# import os
#
# re=os.path.realpath(__file__)
# re1=os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
# print(re1)
# import configparser
# # from conf import test.config
# from common.all_path import *
#
# class Readconfig():
#     def read_config(self,filename,section,action):
#         cf=configparser.ConfigParser()
#         cf.read(filename)
#         res=cf.get(section,action)
#         return eval(res)
#
# if __name__ == '__main__':
#     r=Readconfig()
#     res=r.read_config(path_config,"auto_test","auto_test")
#     print(res)
#     print(type(res))

# class guo:
#
#     token=None
#     name=None
#     age=12
#
#
# if __name__ == '__main__':
#     print(getattr(guo,"token"))
#     print(getattr(guo,"age"))
#
#     setattr(guo,"age",129)
#     print(getattr(guo,"age"))

# import openpyxl
# from common.all_path import *
# from common.read_config import Read_config
# value_config=Read_config().readconfig(path_config,"auto_test","auto_test")   #{"testcase":"all"}
#
# def doex():
#     for keys in value_config:
#         wb=openpyxl.load_workbook(path_test_data)
#         sheet=wb[keys]
#         data_list=[]
#         if value_config[keys]=="all":
#             for i in range(2,sheet.max_row+1):
#                 dic = {}
#                 dic["caseId"]=sheet.cell(i,1).value
#                 dic["desc"]=sheet.cell(i,2).value
#                 dic["url"]=sheet.cell(i,3).value
#                 dic["http_method"]=sheet.cell(i,4).value
#                 dic["header"]=sheet.cell(i,5).value
#                 dic["Data"]=sheet.cell(i,6).value
#                 dic["expected"]=sheet.cell(i,7).value
#                 dic["result"]=sheet.cell(i,8).value
#                 dic["TestResult"]=sheet.cell(i,9).value
#                 data_list.append(dic)
#             return data_list
#         else:
#             for i in value_config[keys]:
#                 dic = {}
#                 dic["caseId"]=sheet.cell(i+1,1).value
#                 dic["desc"]=sheet.cell(i+1,2).value
#                 dic["url"]=sheet.cell(i+1,3).value
#                 dic["http_method"]=sheet.cell(i+1,4).value
#                 dic["header"]=sheet.cell(i+1,5).value
#                 dic["Data"]=sheet.cell(i+1,6).value
#                 dic["expected"]=sheet.cell(i+1,7).value
#                 dic["result"]=sheet.cell(i+1,8).value
#                 dic["TestResult"]=sheet.cell(i+1,9).value
#                 data_list.append(dic)
#             return data_list
#
#
#
# if __name__ == '__main__':
#     f=doex()
#     print(f)
#
#


import os,sys
# print(os.path.abspath(os.path.join(os.path.dirname(__file__),"../")))
# sys.path.append((os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))))
sys.path.append(os.path.split(os.path.split(os.path.abspath("__name__"))[0])[0])
print(sys.path)
print(os.path.split(os.path.split(os.path.abspath("__name__"))[0])[0])








